  {  Petrova Tatjana
     2012/10/07
     This program writes your equation of tangent line.}

program TangentLine;

{$APPTYPE CONSOLE}

uses
  SysUtils;

var
  a1,R,g,x0,y0,x1,y1,b1,g1,e,f,d:integer;
  a, b, c:real;

begin
  readln(R,x1,y1,x0,y0);
  e :=(x0-x1);
  f :=(y0-y1);
  g := (-R*e+f*round(sqrt(e*e+f*f-R*R)));
  g1:= (e*e+f*f);
  a := g mod g1;
  a1 := g div g1;
  a := a+a1;
  d:=-R*f-e*round(sqrt(e*e+f*f-R*R)) ;
  b:=d mod g1;
  b1:= d div g1;
  b:=b+b1;
  c:=-a*x0-b*y0;
  writeln(a,b,c);
  g := (-R*e-f*round(sqrt(e*e+f*f-R*R)));
  a := g mod g1;
  a1 := g div g1;
  a := a+a1;
  d:=-R*f+e*round(sqrt(e*e+f*f-R*R)) ;
  b:=d mod g1;
  b1:= d div g1;
  b:=b+b1;
  c:=-a*x0-b*y0;
  writeln(a,b,c);
  readln;



end.
